def show_robot():
    print('''
      ____   
     /  __\  
     \( oo/ 
     _\_o/
    / \|/ \ 
   / / __\ \___  
   \ \|   |__/_) 
    \/_)  |      
     ||___|   
     | | |       
     | | |       
     |_|_|    
     [__)_)    

    HI,I'm your AI----NaNa
    ''')

def ask_name():
    name=input('I\'m NaNa. What\' your name?\n')
    # age=input('How old are you?')
    print(f'hello,{name},Great to meet you!')
    print('I have a close question. Please answer \'yes\' or \'not\'')
    answer=input('wahhahah, right?\n')
    if(answer=='yes'):
        print('wahahha')
    else:
        print('Please answer this question again')
def ask_age():
    age=input('I am 21 years old. How old are you?\n')
    age=int(age)
    if(age<30):
        if(age<12):
            print(f'{age} years old is best year in your life!.')
        else:
            print(f'you are so young,You\'re only {age} years old!')
    elif(age<50):
        print('I appreciate your mature character very much!')
    else:
        print(f'{age} years old is pretty cool! I hope you can enjoy your life!')
def show_time():
    from datetime import datetime
    import time
    dt=datetime.now()
    print(dt.strftime('Today is %Y-%m-%d %H-%M-%S'))
def ai_talk(question):
    return question.replace('你','我').replace('吗','').replace('不','').replace('？','！')
def weather(city):
    url='https://api.seniverse.com/v3/weather/now.json?key=S3Gz2FH82SYLJkb-u&location=shenzhen&language=zh-Hans&unit=c'
    import requests
    res = requests.get(url)
    tq_text=res.text
    import json
    tq_json=json.loads(tq_text)
    city_name=tq_json['results'][0]['location']['name']
    wendu=tq_json['results'][0]['now']['temperature']
    print(f'{city}:城市是{city_name}, 温度是{wendu}')